﻿<%@ Page Title="" Language="C#" MasterPageFile="~/studentUser/Student.Master" AutoEventWireup="true" CodeBehind="Liqinshangbao.aspx.cs" Inherits="WebApplication1.studentUser.Liqinshangbao" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style4 {
            height: 65px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <asp:SqlDataSource ID="SqlDataSource3" runat="server"></asp:SqlDataSource>
     <table class="auto-style4" style=" margin: 0 auto;font-size:large;position: relative;top:50px">
        <tr>
            <td colspan="2"  align="center" style="font-size:x-large"">离寝上报</td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">姓名：</td>
            <td>
                <asp:TextBox ID="name" runat="server" Height="25px" Width="440px"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name" ErrorMessage="姓名不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">班级：</td>
            <td>
                <asp:TextBox ID="classname" runat="server" Height="25px" Width="440px"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="classname" ErrorMessage="班级不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td class="auto-style4" align="right">宿舍楼：</td>
            <td class="auto-style4">
                <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" Height="29px" Width="440px" DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="name">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="select name from hostel"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">宿舍号：</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Height="29px" Width="440px" DataSourceID="SqlDataSource1" DataTextField="dormitory_number" DataValueField="dormitory_number">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="select dormitory_number from dormitory"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">手机号：</td>
            <td>
                <asp:TextBox ID="phonenumber" runat="server" MaxLength="11" TextMode="Phone" Height="25px" Width="440px"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="phonenumber" ErrorMessage="手机号不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">申请离宿原因：</td>
            <td>
                <asp:TextBox ID="reason" runat="server" BorderStyle="Solid" Height="74px" TextMode="MultiLine" Width="441px"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="reason" ErrorMessage="申请离宿原因不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="2" align="center">
                <asp:Button ID="Button1" runat="server" Text="提交" Height="30px" Width="56px" OnClick="Button1_Click" />
            </td>
        </tr>
    </table>
</asp:Content>

